#include "MyGDIPlus.h"
#include "MyRectangle.h"
#include "MyShape.h"

MyShape* MyShape::Parse(string s) {
	return new MyRectangle();
}


void main()
{
	HWND console =  GetConsoleWindow();
	MyGraphic* graphic = new MyGDIPlus(console);
	
	
	char color[] = { 255, 255, 0 };
	char colorFill[] = { 100, 60, 80};	
	
	MyShape* rect1 = new MyRectangle(color, colorFill, 2.5F, 50, 50, 200, 100);
	//MyShape* rect1 = new MyRectangle(color, NULL, 2.5F, 50, 50, 200, 100);
	rect1->setMyGraphic(graphic);
	rect1->Draw();
	string s = rect1->ToString();
	cout << s << endl;
	delete rect1;
	delete graphic;

}